package com.cos.emp.dao;

import com.cos.emp.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: COS
 * @time: 2021/11/18 14:40
 * @description:
 */
public interface EmpMapper {
    List<Emp> getAllEmp();

    int addEmp(Emp emp);

    int updateEmp(Emp emp);

    int delEmp(@Param("eno") int eno);

    Emp getEmpByName(@Param("ename") String ename);

    Emp getEmpByEno(@Param("eno") int eno);
    /**
     *
     * @author: COS
     * @return:
     * @time: 2021/11/18 15:35
     * @description: 通过手机号查询用户数据
     */
    List<Emp> getEmpByPhone(@Param("phone") String phone);
}
